<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center my_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub my_fd0_0'>
					<view class='flex flex-wrap align-center my_fd0_0_c0'>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
					</view>
					<view class='flex flex-wrap align-center justify-end my_fd0_0_c0'>
						<view class='flex flex-wrap align-center my_fd0_0_c2_c0' @tap.stop="handleJumpDiy"
							data-type="switchTab" :data-url="`/pages/tabBar/myNews/myNews`">
						</view>
					</view>
				</view>
			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>

			<view class="flex flex-wrap align-start benben-flex-layout my_flex_1">
				<view class='flex flex-direction flex-wrap align-stretch flex-sub'>
					<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/grzx/personalData/personalData`">
						<image class='my_fd1_0_c0_c0' mode="aspectFill" :src='userInfo.avatar'></image>
						<view class='flex flex-wrap align-stretch justify-between flex-sub my_fd1_0_c0_c1'>
							<text class='my_fd1_0_c0_c1_c0'>{{userInfo.nickname}}</text>
							<image class='my_fd1_0_c0_c1_c1' mode="aspectFit" :src='STATIC_URL+"150.png"'></image>
						</view>
					</view>
				</view>
			</view>

			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center">
				<view class='flex flex-direction flex-wrap align-stretch flex-sub my_fd2_0'>
					<view class='flex flex-direction flex-wrap align-stretch flex-sub'>
						<view class='flex flex-wrap align-center my_fd2_0_c0_c0' @tap.stop="handleJumpDiy"
							data-type="navigateTo" :data-url="`/pages/grzx/rateLearn/rateLearn`">
							<image class='my_fd2_0_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"155.png"'></image>
							<view class='flex flex-wrap align-center justify-between flex-sub'>
								<text class='my_fd2_0_c0_c0_c1_c0'>学习进度</text>
								<image class='my_fd2_0_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"150.png"'></image>
							</view>
						</view>
					</view>
					<view class='flex flex-wrap align-center my_fd2_0_c0_c0' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/grzx/myTask/myTask`">
						<image class='my_fd2_0_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"156.png"'></image>
						<view class='flex flex-wrap align-center justify-between flex-sub'>
							<text class='my_fd2_0_c0_c0_c1_c0'>我的任务</text>
							<image class='my_fd2_0_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"150.png"'></image>
						</view>
					</view>
					<view class='flex flex-wrap align-center my_fd2_0_c0_c0' @tap.stop="handleJumpDiy"
							data-type="navigateTo" :data-url="`/pages/grzx/myCollection/myCollection`">
						<image class='my_fd2_0_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"157.png"'></image>
						<view class='flex flex-wrap align-center justify-between flex-sub' >
							<text class='my_fd2_0_c0_c0_c1_c0'>我的收藏</text>
							<image class='my_fd2_0_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"150.png"'></image>
						</view>
					</view>
					<view class='flex flex-wrap align-center my_fd2_0_c0_c0' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/xtsz/feedBack/feedBack`">
						<image class='my_fd2_0_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"158.png"'></image>
						<view class='flex flex-wrap align-center justify-between flex-sub'>
							<text class='my_fd2_0_c0_c0_c1_c0'>意见反馈</text>
							<image class='my_fd2_0_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"150.png"'></image>
						</view>
					</view>
					<view class='flex flex-wrap align-center my_fd2_0_c0_c0' @tap.stop="handleJumpDiy"
						data-type="navigateTo" :data-url="`/pages/xtsz/system/system`">
						<image class='my_fd2_0_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"159.png"'></image>
						<view class='flex flex-wrap align-center justify-between flex-sub'>
							<text class='my_fd2_0_c0_c0_c1_c0'>系统设置</text>
							<image class='my_fd2_0_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"150.png"'></image>
						</view>
					</view>
				</view>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"userInfo": {
					"invite_code": "",
					"address": "",
					"address_code": "",
					"hobby": "",
					"tags": "",
					"id": "",
					"userlevel_id": "",
					"mobile": "",
					"real_name": "",
					"avatar": "",
					"account": "",
					"email": "",
					"birthday": "",
					"gender": "",
					"create_time": "",
					"user_money": "",
					"freeze_money": "",
					"total_consumption_money": "",
					"score": "",
					"_mobile": "",
					"coupon": "",
					"collection_count": "",
					"browse_count": "",
					"total_money": "",
					"certified": "",
					"nickname": "",
					"is_pay_password": "",
					"follow_count": "",
					"is_close": ""
				},
				"subscripts": {
					"article": "",
					"message": "",
					"chat": "",
					"all": ""
				}
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
			isLogin() {
				return this.$store.state.token == '' ? false : true;
			}
		},
		watch: {},
		onLoad(options) {

		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.queryUserInfoFunc()
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取用户详细信息
			async queryUserInfoFunc() {
				if (this.isLogin === true) {
					//请求方法
					//数据验证
					let datauserInfo = await this.$api.get(global.apiUrls.post5c78c4772da97, {

					});
					if (datauserInfo.data.code != 1) {
						this.$message.info(datauserInfo.data.msg);
						return
					}
					let infouserInfo = datauserInfo.data;
					this.userInfo = infouserInfo.data

				}
			},
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: url(image-path('137.png')) no-repeat;
		background-size: 100% auto;
	}

	.my_flex_0 {
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
	}

	.my_fd0_0_c2_c0 {
		position: relative;
	}

	.my_fd0_0_c0 {
		width: 200rpx;
	}

	.my_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.my_flex_1 {
		padding: 24rpx 32rpx 34rpx 32rpx;
	}

	.my_fd1_0_c1_c1_c0_c0 {
		font-size: 36rpx;
		font-weight: 700;
		color: #FFFFFF;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.my_fd1_0_c1_c0 {
		width: 128rpx;
		height: 128rpx;
		border-radius: 66rpx 66rpx 66rpx 66rpx;
	}

	.my_fd1_0_c0_c1_c1 {
		width: 48rpx;
		height: 48rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.my_fd1_0_c0_c1_c0 {
		font-size: 32rpx;
		font-weight: 700;
		color: rgba(51, 51, 51, 1);
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.my_fd1_0_c0_c1 {
		margin: 0rpx 0rpx 0rpx 20rpx;
	}

	.my_fd1_0_c0_c0 {
		width: 116rpx;
		height: 116rpx;
		border-radius: 66rpx 66rpx 66rpx 66rpx;
	}

	.my_fd2_0_c0_c0_c1_c0 {
		margin: 0rpx 16rpx 0rpx 16rpx;
		color: #333333;
		font-size: 28rpx;
		font-weight: 400;
	}

	.my_fd2_0_c0_c0_c0 {
		width: 48rpx;
		height: 48rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.my_fd2_0_c0_c0 {
		background: #fff;
		background-size: 100% auto;
		border-radius: 16rpx;
		padding: 36rpx 34rpx 36rpx 40rpx;
		margin: 0rpx 0rpx 20rpx 0rpx;
	}

	.my_fd2_0 {
		padding: 0rpx 36rpx 0rpx 36rpx;
	}
</style>